﻿using GrainManage.Entities.Encrypt;
using GrainManage.Web.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GrainManage.Web.Models.Account
{
    public class ChangePasswordModel
    {
        [Required(ErrorMessageResourceType = typeof(AccountResx), ErrorMessageResourceName = "UserNameRequired")]
        [Display(ResourceType = typeof(AccountResx), Name = "UserName")]
        public string UserName { get; set; }

        [Required(ErrorMessageResourceType = typeof(AccountResx), ErrorMessageResourceName = "OldPasswordRequired")]
        [Display(ResourceType = typeof(AccountResx), Name = "OldPassword")]
        public string OldPassword { get; set; }

        [Required(ErrorMessageResourceType = typeof(AccountResx), ErrorMessageResourceName = "NewPasswordRequired")]
        [Display(ResourceType = typeof(AccountResx), Name = "NewPassword")]
        public string NewPassword { get; set; }

        public EncryptFlag EncryptFlag { get; set; }
    }
}